<template>
  <div>
     <input type="text" v-model="username">
     <input type="password" v-model="password">
     <button @click="loginHandle">登陆</button>
  </div>
</template>

<script>
export default {
  name: 'Mine',
  data () {
    return {
      username: '15701286613',
      password: 'iwen0403'
    }
  },
  methods: {
    loginHandle () {
      console.log(111)
      this.$api.login({
        phone: this.username,
        password: this.password
      }).then(res => {
        console.log(res)
      })
    }
  }
}
</script>

<style scoped>

input{
  border: 1px solid red;
}

</style>
